package com.mengxinya.ys.spider.zhihu;

import com.mengxinya.ys.dataccess.QueryBuilder;
import jakarta.persistence.EntityManager;

public class ZhihuRepository {
    private EntityManager em;

    public void insertAnswer(ZhihuAnswer answer) {
        QueryBuilder.saveEntity(em, answer);
    }

    public void insertPerson(ZhihuPerson person) {
        QueryBuilder.saveEntity(em, person);
    }

    public void insertQuestion(ZhihuQuestion question) {
        QueryBuilder.saveEntity(em, question);
    }
}
